package Server;

import BaseQuery.BaseQuery;
import Bean.Food;
import vo.ResultBean;

import java.util.List;

public interface IBaseServe<T>{
	public ResultBean add(T t) throws Exception;
	public ResultBean update(T t) throws Exception;
	public ResultBean delete(Integer id) throws Exception;
	public ResultBean getById(Integer id) throws Exception;
	public ResultBean getAll() throws Exception;
	public ResultBean getByPage(BaseQuery baseQuery) throws Exception;
	public ResultBean batchDel(List<Integer> ids) throws Exception;
}
